﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //Cat cat = new Cat();
            //cat.SeeNight();
            //cat.Publicaction();
            //cat.Myaction();



            //YanZi yanZi = new YanZi();
            //yanZi.Fry();
            //yanZi.Publicaction();
            //yanZi.Myaction();

            Console.WriteLine("请选择你要选的动物：1.老虎 2.猫 3.燕子 4.老鹰");
            int key = Convert.ToInt32(Console.ReadLine());
            Animal animal;
            switch (key)
            {
                case 1:
                    animal = new Tiger();
                    break;
                case 2:
                    animal = new Cat();
                    break;
                case 3:
                    animal = new YanZi();
                    break;
                case 4:
                    animal = new Eagin();
                    break;            
                default:
                    animal= new Tiger();
                    break;
            }

            ClooseAnimal clooseAnimal = new ClooseAnimal();
            clooseAnimal.ThisAnimal(animal);

        }
    }
    
         

    }

